using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

using OVC = AxMicrosoft.Office.Interop.OutlookViewCtl;

namespace Microsoft.Sample.Outlook.Utility
{
    public sealed partial class OutlookViewControl : UserControl
	{
        private OVC.AxViewCtl viewControl;

		public OutlookViewControl()
		{
			InitializeComponent();

			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(OutlookViewControl));
			this.viewControl = new AxMicrosoft.Office.Interop.OutlookViewCtl.AxViewCtl();
			((System.ComponentModel.ISupportInitialize)(this.viewControl)).BeginInit();

			this.viewControl.Dock = System.Windows.Forms.DockStyle.Fill;
			this.viewControl.Enabled = true;
			this.viewControl.Location = new System.Drawing.Point(0, 0);
			this.viewControl.Name = "axViewCtl1";
			this.viewControl.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axViewCtl1.OcxState")));
			this.viewControl.Size = new System.Drawing.Size(371, 364);
			this.viewControl.TabIndex = 0;
			this.viewControl.Visible = false;

			this.Controls.Add(this.viewControl);

			((System.ComponentModel.ISupportInitialize)(this.viewControl)).EndInit();
		}

		public OVC.AxViewCtl NativeControl
		{
			get { return viewControl; }
		}

        public string Folder
        {
            get { return viewControl.Folder; }
            set { viewControl.Folder = value; }
        }

        public string View
        {
            get { return viewControl.View; }
            set { viewControl.View = value; }
        }

        public string ViewXML
        {
            get { return viewControl.ViewXML; }
            set { viewControl.ViewXML = value; }
        }
	}
}
